import _fetch from "api_xukaiyu/fetch";
/**
 * 我的邀请信息
 */
export function my_info(data) {
  return _fetch({
    url: "app/invite_activity/my_info",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 助力好友
 * @param { Object } data 请求参数
 * {
 *   helpUid undefined
 * }
 */
export function help_poll(data) {
  return _fetch({
    url: "app/invite_activity/help_poll",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 初始化数量进入redis
 */
export function init_num(data) {
  return _fetch({
    url: "app/invite_activity/init_num",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询剩余数量
 */
export function remain_num(data) {
  return _fetch({
    url: "app/invite_activity/remain_num",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询好友邀请数据
 * @param { Object } data 请求参数
 * {
 *   uid undefined
 * }
 */
export function query_user_next_rank_count(data) {
  return _fetch({
    url: "app/invite_activity/query_user_next_rank_count",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 助力好友列表
 * @param { Object } data 请求参数
 * {
 *   uid undefined
 *   total undefined
 *   queryStartTime undefined
 *   pageSize undefined
 *   page undefined
 *   queryEndTime undefined
 * }
 * @responses { Object } 返回参数
 * {
 *   headImg 微信头像
 *   createTime 创建时间
 *   nickName 微信昵称
 * }
 */
export function help_poll_list(data) {
  return _fetch({
    url: "app/invite_activity/help_poll_list",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 领取奖励
 * @param { Object } data 请求参数
 * {
 *   ticketType undefined
 * }
 */
export function receive_gift(data) {
  return _fetch({
    url: "app/invite_activity/receive_gift",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询我已领取的奖励
 * @responses { Object } 返回参数
 * {
 *   imgUrl 商品图片
 *   gmtModified 领取时间
 *   chargeType 兑换方式 0-网页充值 1-无跳转
 *   ticketType 卡券类型
 *   chargeUrl 充值链接
 *   source 来源
 *   ticketCode 券码
 * }
 */
export function query_my_gift(data) {
  return _fetch({
    url: "app/invite_activity/query_my_gift",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询排行榜列表
 * @responses { Object } 返回参数
 * {
 *   uid 用户uid
 *   nickName 昵称
 *   count 邀请人数
 *   mobile 手机号
 * }
 */
export function query_rank_list(data) {
  return _fetch({
    url: "app/invite_activity/query_rank_list",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 查询奖品列表
 * @responses { Object } 返回参数
 * {
 *   imgUrl 商品图片
 *   ticketType 卡券类型
 *   stock 库存数量
 *   skuId 商品Id
 *   status 领取状态 0-不可领取 1-可领取 2-已领取 3-优惠购
 * }
 */
export function query_prize_list(data) {
  return _fetch({
    url: "app/invite_activity/query_prize_list",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * 活动状态
 */
export function activity_status(data) {
  return _fetch({
    url: "app/invite_activity/activity_status",
    method: "POST",
    data: data,
    headers: {}
  });
}